package com.qc.blogsystemplus.util;


import org.apache.shiro.crypto.hash.SimpleHash;

public class EncryptionUtil {

    private static final String salt = "huoher";

    public static String encrypt(String password) {
        int times = 1;
        String algorithmName = "md5";
        String encodedPassword = new SimpleHash(algorithmName,password,salt,times).toString();
        return encodedPassword;
    }
}
